package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.AccountLogDao;
import com.edt.ichannel.api.entiy.local.AccountLog;
import com.edt.ichannel.api.service.AccountLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AccountLogServiceImpl implements AccountLogService {
    @Resource
    private AccountLogDao accountLogDao;
    @Override
    public void insert(AccountLog accountLog) {
        accountLogDao.insert(accountLog);
    }


    @Override
    public AccountLog selectByOrderCode(String orderCode) {
        return accountLogDao.selectByOrderCode(orderCode);
    }

    @Override
    public double getUnicomAccountMoneyByExpansionId(String expansionId) {
        return accountLogDao.getUnicomAccountMoneyByExpansionId(expansionId);
    }

    @Override
    public double getUnicomAuditAccountMoneyByExpansionId(String expansionId) {
        return accountLogDao.getUnicomAuditAccountMoneyByExpansionId(expansionId);
    }


}
